home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / NuBusPlugin.a < prev    next >
Text File  |  1996-05-01  |  2KB  |  76 lines

  1. ;
  2. ;    File:        NuBusPlugin.a
  3. ;
  4. ;    Contains:    I/O Interfaces for NuBus "bus plugins"
  5. ;
  6. ;    Version:    Technology:    xxx Put version info here xxx
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__NUBUSPLUGIN__') = 'UNDEFINED' THEN
  19. __NUBUSPLUGIN__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__SLOTS__') = 'UNDEFINED' THEN
  25.     include 'Slots.a'
  26.     ENDIF
  27.     IF &TYPE('__KERNEL__') = 'UNDEFINED' THEN
  28.     include 'Kernel.a'
  29.     ENDIF
  30.     IF &TYPE('__INTERRUPTS__') = 'UNDEFINED' THEN
  31.     include 'Interrupts.a'
  32.     ENDIF
  33.     IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
  34.     include 'NameRegistry.a'
  35.     ENDIF
  36.     IF &TYPE('__NUBUS__') = 'UNDEFINED' THEN
  37.     include 'NuBus.a'
  38.     ENDIF
  39.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  40.  
  41. kNuBusMaxRegs                    EQU        10
  42. kNuBusPluginNSlotMask            EQU        $0000000F
  43. kNuBusPluginCanDisable            EQU        $80000000
  44. kNuBusPluginCanMap                EQU        $40000000
  45. kNuBusPluginVersion                EQU        0
  46. NuBusPluginHeader        RECORD 0
  47. version                     ds        NumVersion        ; offset: $0 (0)
  48. attributes                 ds.l    1                ; offset: $4 (4)
  49. reserved1                 ds.l    1                ; offset: $8 (8)
  50. reserved2                 ds.l    1                ; offset: $C (12)
  51. sizeof                     EQU *                    ; size:   $10 (16)
  52.                         ENDR
  53. NuBusPluginDescriptor    RECORD 0
  54. header                     ds        NuBusPluginHeader ; offset: $0 (0)
  55. Initialize                 ds.l    1                ; offset: $10 (16)
  56. Finalize                 ds.l    1                ; offset: $14 (20)
  57. sizeof                     EQU *                    ; size:   $18 (24)
  58.                         ENDR
  59. ;
  60. ; * NuBusMapSlot -
  61. ; *
  62. ; * The interface a NuBus "bus plugin" uses to communicate its
  63. ; * slot addressing requirements to the NuBus family manager
  64. ; *
  65. ;
  66. ;
  67. ; extern OSStatus NuBusMapSlot(const RegEntryRef *thisBus, PropertyReg *theseAddresses, ByteCount nAddresses, RegEntryRef *resultSlots)
  68. ;
  69.     IF GENERATINGCFM THEN
  70.         IMPORT_CFM_FUNCTION NuBusMapSlot
  71.     ENDIF
  72.  
  73.     ENDIF
  74.     ENDIF ; __NUBUSPLUGIN__ 
  75.  
  76.